package com.wudgaby.spring.shiro.domain;

import java.util.List;

public class User {
    private int id;
    private String userName;
    private String password;
    private String slat;
    private List<String> roles;
    
    public User(){}
    
    public User(int id, String userName, String password, String slat,
            List<String> roles) {
        super();
        this.id = id;
        this.userName = userName;
        this.password = password;
        this.slat = slat;
        this.roles = roles;
    }
    
    public int getId() {
        return id;
    }
    public void setId(int id) {
        this.id = id;
    }
    public String getUserName() {
        return userName;
    }
    public void setUserName(String userName) {
        this.userName = userName;
    }
    public String getPassword() {
        return password;
    }
    public void setPassword(String password) {
        this.password = password;
    }
    public String getSlat() {
        return slat;
    }
    public void setSlat(String slat) {
        this.slat = slat;
    }
    public List<String> getRoles() {
        return roles;
    }
    public void setRoles(List<String> roles) {
        this.roles = roles;
    }

    @Override
    public String toString() {
        return "User [id=" + id + ", userName=" + userName + ", password="
                + password + ", slat=" + slat + ", roles=" + roles + "]";
    }
}
